package cn.zs.supply.common.constants;

public class PubKeyDef {
    public final static String SESSION_USER_KEY = "loginUser";
    /* 灰度策略相关常量 */
    public static final String METADATA_GREY = "grey";
    public static final String METADATA_WEIGHT = "weight";
    public static final String GRAY_TAG = "x-grey-tag";
    public static final String SERVICE_ID = "service_id";

    public static final String GRAY_STRATEGY_IP = "ip";
    public static final int DEFAULT_WEIGHT = 30;
    public static final int MAX_WEIGHT = 100;

    public static final String[] GREY_NAME = {"ip", "userId",  "appid"};

    /* 日志参数相关常量 */
    public static final String TRACE_ID = "traceId";
    public static final String HEADER_REQ_SOURCE = "baggage-reqSource";
    public static final String LOG_REQ_SOURCE = "reqSource";
    public static final String LOG_REQ_TARGER = "reqTarget";
    public static final String LOG_OUTER_SEQUENCE = "sequence";
    public static final String LOG_THIRPARTY_SEQUENCE = "thirdpartySequence";
}
